# Start [Phoenix Query Server](https://phoenix.apache.org/server.html)
# with `/usr/bin/python queryserver.py start`
# on host cdh001 with user *avatar*

import phoenixdb
import phoenixdb.cursor
database_url = "http://cdh001:8765"
conn = phoenixdb.connect(database_url, autocommit=True)
cursor = conn.cursor()
cursor.execute('select DISTINCT("TABLE_NAME") from SYSTEM.CATALOG')
print(cursor.fetchall())
cursor.execute('select * from DEVICE_INFO')
print(cursor.fetchall())

